package io.renren.modules.generator.service;

import io.renren.modules.generator.entity.DepartmentEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-10-13 22:43:32
 */
public interface DepartmentService {
	
	DepartmentEntity queryObject(String departmentno);
	
	List<DepartmentEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(DepartmentEntity department);
	
	void update(DepartmentEntity department);
	
	void delete(String departmentno);
	
	void deleteBatch(String[] departmentnos);

	DepartmentEntity departmentByEmployee(String employeeno);
}
